/*
*  通用状态管理
*/
// import API from '../../api';
const SET_LOGIN_SATEUS = 'SET_LOGIN_SATEUS'; // 登录窗口判断
const state = {
  isLogin: false
};
const getters = {
  isLogin: state => state.isLogin
};
const actions = {
  setLogin ({ commit }, data) {
    commit(SET_LOGIN_SATEUS, data);
  }
};

const mutations = {
  [SET_LOGIN_SATEUS] (state, data) {
    state.isLogin = data;
  }
};

export default {
  state,
  getters,
  actions,
  mutations
};
